public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();
        myArrayList.add(0,0);
        myArrayList.add(5,6);
        myArrayList.display();
        System.out.println(myArrayList.contains(6));
        System.out.println(myArrayList.contains(66));
        System.out.println(myArrayList.indexOf(1));
        System.out.println(myArrayList.indexOf(66));
        System.out.println(myArrayList.get(6));
        myArrayList.set(3,333);
        myArrayList.display();
        myArrayList.remove(4);
        myArrayList.display();
        System.out.println(myArrayList.size());
    }
}
